﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//using Kingdee.BOS.WinForm.Login;

namespace 日铁.Common
{
    internal class K3Login
    {
        private static K3Login _defaultInstance;
        public static K3Login DefaultInstance => _defaultInstance ?? (_defaultInstance = new K3Login());

        private object _kingdeeLoginObject;
        private Type _kingdeeLoginType;

        public SqlConnectionStringBuilder SqlConnectionStringBuilder { get; private set; }
        public string SqlConnectionString { get; private set; }
        public string AccountName { get; private set; }
        public string UserName { get; private set; }
        public int? UserId { get; private set; }



        public K3Login()
        {
/*#if DEBUG
            SqlConnectionString = Properties.Settings.Default.AIS20140611110130ConnectionString;
            //Properties.Settings.Default.AIS20140611110130ConnectionString = SqlConnectionString;
            var settings = ConfigurationManager.AppSettings;
            //MessageBox.Show(settings["LoginUserId"]);
            UserId = settings["LoginUserId"] == null ? 16400 : int.Parse(settings["LoginUserId"]);
#endif*/
        }
    }
}
